<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:mj="http://mojarra.dev.java.net/mojarra_ext"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Cadastro de Disciplinas</title>
</h:head>

<h:body>
	<h1>Cadastro de Disciplina</h1>
	
	<h:form>
		<h:panelGrid border="1" columns="2" style="width: 618px; ">
			<h:outputLabel value="Codigo:"></h:outputLabel>
			<h:inputText label="Codigo" id="codigo" value="#{disciplinaBean.disciplina.id}"
				required="true" style="width: 157px; "></h:inputText>

			<h:outputLabel value="Nome:"></h:outputLabel>
			<h:inputText id="nome" label="Nome" value="#{disciplinaBean.disciplina.nome}"
				required="true" style="width: 418px; "></h:inputText>

			<h:outputLabel value="Carga Horária:"></h:outputLabel>
			<h:inputText id="cargahoraria" label="Carga Horaria"
				value="#{disciplinaBean.disciplina.cargaHoraria}" required="true" style="width: 82px; "></h:inputText>

			<h:commandButton value="Salvar" action="#{disciplinaBean.salvar()}" style="width: 163px; "></h:commandButton>
		</h:panelGrid>
	</h:form>
</h:body>

</html>
